package ${cfg.remotePackage};


import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.Api;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
import org.springframework.beans.factory.annotation.Autowired;
import com.liuyjy.base.common.entity.PageResult;
import com.liuyjy.base.common.entity.PageSearch;
import ${package.Entity}.${entity};
import ${package.Service}.${table.serviceName};
import ${cfg.modelPackage}.${entity}DTO;
import ${cfg.remoteApiPackage}.${entity}Remote;
<#if superControllerClassPackage??>
        import ${superControllerClassPackage};
</#if>
import java.util.List;
/**
* <p>
        * ${table.comment!} 前端控制器
        * </p>
*
* @author ${author}
* @since ${date}
*/
@RestController
@RequestMapping("<#if cfg.moduleName??>/${cfg.moduleName}/${table.entityPath}<#else>/${table.entityPath}</#if>")
public class ${entity}RemoteImpl implements ${entity}Remote {

        @Autowired
        private ${table.serviceName} ${entity?uncap_first}Service;


        /**
        * 分页查询
        *
        * @param info       查询条件
        * @param pageSearch 分页信息
        * @return
        */
        @Override
        public PageResult<${entity}DTO> queryListPage(${entity}DTO info, PageSearch pageSearch) {
        //return ${entity?uncap_first}Service.queryListPage(info, pageSearch);
        return null;
         }

        /**
        * 列表
        *
        * @param info 查询条件
        * @return
        */
        @Override
        public List<${entity}DTO> queryList(${entity}DTO info) {
            //return ${entity?uncap_first}Service.queryList(info);
                return null;
        }

        /**
        * 根据Id值查询
        *
        * @param id id
        * @return
        */
        @Override
        public ${entity}DTO queryById(Long id) {
        //return ${entity?uncap_first}Service.queryById(id);
                return null;
        }


        /**
        * 修改或添加
        *
        * @param entity 实体对象
        * @return
        */
        @Override
        public void saveOrUpdate(${entity}DTO entity) {
          //${entity?uncap_first}Service.saveOrUpdate(entity);
        }

        /**
        * 删除对象
        *
        * @param id id
        */
        @Override
        public void del(Long id) {
          //${entity?uncap_first}Service.del(id);
        }


                }